home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The 640 MEG Shareware Studio 2
/
The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO
/
diag
/
ccs103.zip
/
CCS.DOC
< prev
next >
Wrap
Text File
|
1992-02-20
|
5KB
|
155 lines
CCS - Configuration Control System Version 1.2
Freeware Copyright (C) 1991
Date: Feb XXX 1991
Author: Soh Kok Hong
The Configuration Control System allows the user to store different options
in his CONFIG.SYS and AUTOEXEC.BAT files. At boot up time, the user can
select the option he/she wishes to boot with. The system consists of the
following files:
a. CCS.CTL - the character device driver
b. OPTPICK.COM - used to get the option picked by the user
c. CCS.DOC - the documentation file
Example CONFIG.SYS file
... Lines common to all configurations
DEVICE=CCS.CTL [wait] [def]
DEVICE=OPTION B [descriptive text for option B]
... Lines of configuration B
DEVICE=ENDOPT
... Lines common to all configurations
DEVICE=OPTION A [descriptive text for option A]
... Lines of configuration A
DEVICE=ENDOPT
... Lines common to all configurations
DEVICE=OPTION C [descriptive text for option C]
... Lines of configuration C
DEVICE=ENDOPT
... Lines common to all configurations
DEVICE=DONECCS
Note: Text within square brackets are optional.
The option letter of OPTION must be present.
Example AUTOEXEC.BAT
... Lines common to all configurations
OPTPICK
if "%CCS103%"=="" goto noconfig
goto config%CCS103%
:noconfig
echo cannot find configuration, check autoexec.bat and config.sys
goto done
:configA
... Lines for configuration A
GOTO done
:configB
... Lines for configuration B
GOTO done
:configC
... Lines for configuration C
:done
... Lines common to all configurations
[wait] is the number of seconds to wait for a key to be hit before the
default configuration is used to boot up the system. If [wait] is omitted,
the menu is put up automatically when the machine boots up.
[def] is a single alphabetic character for the default menu item selection.
If [def] is too large, too small or omitted, the default selection will be
"A".
Descriptive text can be placed after DEVICE=OPTION so that the menu
can display a description of that configuration option.
After CCS.CTL is installed as a character device driver, the option selected
by the user is stored in its memory. The device sets itself up with the
filename "CCS103XX". OPTPICK.COM can then be used to access the option
selected by the user by reading the file "CCS103XX".
OPTPICK.COM sets the environment variable CCS103 to the letter option
selected by the user during the loading of CONFIG.SYS
Limitations:
1. 52 characters is the longest string which can be used in the
descriptive text in the DEVICE=OPTION line (excluding DEVICE=OPTION).
Longer strings will be truncated.
2. Can handle 100 lines per option at most.
Usage:
I place no restrictions on the use and distribution of this software. But
neither do I place any guarantees that it will work well on your machine.
I have not made this a shareware product because I cannot guarantee I
can support it well. So, I have made it a freeware product and provided
the source code for it. However, donations would be very much
appreciated (maybe $10). You could mail any donations to:
Kok Hong Soh
Bendix/King Radio Corp
400, N. Rogers Road, MD 43
Olathe, KS 66062
USA
Soh is my last name, although I have placed my last name first in the
startup messages for the programs. Putting the last name first is the
custom in my country (Singapore).
Update information:
Version 1.00 My 1st attempt - worked fairly OK but documentation was not
good.
Version 1.01 Improved on OPTPICK.COM so that it would return errorlevel 0
if CCS.CTL is not installed. Remembered to include
sample autoexec.bat and config.sys file in package!
Documentation still stinks!
Version 1.02 Major revisions:
1. Changed marking system in config.sys to allow common
configuration lines between options
2. optpick.com now sets environment variable CCS102 to
the selected option. Any program can now access the current
option by reading the environment variable CCS102.
3. Made "Unrecognized command in CONFIG.SYS" message
disappear for DOS ver 2.x and 3.x (hopefull). This was
a major sticking point for many users, although the
message was harmless. I tried to find a way around the
problem when I downloaded PC Magazine's CONFIG.CTL
utility and wrote a device driver to look at the
config.sys buffer generated by PC Mag's CONFIG.CTL. Had
to do much testing with DOS ver 3.30 before I found the
correct way to pad the empty areas.
4. Corrected error in sample config.sys file - I forgot
to add the /p option to the shell=command.com lines.
The autoexec.bat file will not be executed if that option
is not there.
5. Documentation improved to ask for donation! But it is
still bad - you get what you paid for!
Version 1.03 Major revisions:
1. Allowed user-selected option letters to be set in
CONFIG.SYS. This made removing options from the CONFIG.SYS
easier.
2. Device driver will not be loaded when error is detected
in CONFIG.SYS.
3. Number of options is now limited to 17 - I realized
that the original 26 was too much to be displayed on a
screen without scrolling. As it is unlikely that anyone
will use more than 17 options, I decided not to implement
scrolling in this version.